package trie

type WordToken struct {
	Word   string
	Pinyin string
	start  int
	end    int
}

type ITrie interface {
	AddWord(word string)
	AddWords(word []string)

	GetAllWords() []string
	Match(text string) []WordToken

	Size() int
	IsEmpty() bool
}
